package com.zzl.boot.bigevent.service.impl;

import com.zzl.boot.bigevent.mapper.commentMapper;
import com.zzl.boot.bigevent.pojo.comment;
import com.zzl.boot.bigevent.service.commentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class implCommentService implements commentService {
    @Autowired
    private commentMapper mapper;
    @Override
    public void add(comment comment) {
        mapper.add(comment);
    }

    @Override
    public void del(Integer id) {
        mapper.del(id);
    }

    @Override
    public List<comment> find(Integer id) {
        return mapper.find(id);
    }

    @Override
    public List<comment> findReply(Integer id) {
        return mapper.findReply(id);
    }

    @Override
    public List<comment> findArComment(Integer id) {
        return mapper.findArComment(id);
    }

}
